package com.Cychat.post.service;


import com.Cychat.commons.entity.pojo.Favorite;
import com.Cychat.post.entity.dto.FavoriteDTO;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * @Auther: 崔航
 * @Date: 2025/11/3:11:54
 * @Description:
 */
public interface FavoriteService extends IService<Favorite> {
    List<FavoriteDTO> selectPostFavorites(Long userId);

    void addFavorite(Long userId, Integer postId);

    void deleteFavorite(Long userId, Integer targetId);

    boolean isFavorite(Integer postId, Long userId);
}

